<?php if (!defined('THINK_PATH')) exit();?><!--
    Think.get.type == 1 支付宝支付
                   == 2 手机支付宝
                   == 3 微信
                   == 4 银联
                   == 5 财富通

                   == 6 支付宝登录
                   == 7 QQ登录
                   == 8 微信登录
-->
<div class="bjui-pageContent">
     <div class="text-center" style="padding-bottom:15px">注意：修改支付账户时，请按照相关的支付，配置相关的参数。</div>
    <form action="<?php echo U('Plugin/save_pay');?>" data-callback="dialogFormCall" data-toggle="validate" data-alertmsg="false" class="dialogForm">
        <input type="hidden" name="type" value="<?php echo I('type');?>"/>       
        <?php if(($_GET['type']) == "1"): ?><!--支付宝支付-->
            <div class="form-group">
                <label class="x100">支付宝帐户:</label>
                <input type="text" name="zfb_account" data-rule="required" value="<?php echo ($va["zfb_account"]); ?>"/>
            </div>
           <!--  <div class="form-group">
                <label class="x100">交易安全校验码:</label>
                <input type="text" name="zfb_key" data-rule="required" value="<?php echo ($va[""]); ?>"/>
            </div> -->
            <div class="form-group">
                <label class="x100">合作者身份ID:</label>
                <input type="text" name="zfb_partner" data-rule="required" value="<?php echo ($va["zfb_partner"]); ?>"/>
            </div>
            <div class="form-group">
                <label class="x100">秘钥:</label>
                <textarea name="zfb_key" class="w400"><?php echo ($va["zfb_key"]); ?></textarea>
            </div>
            <div class="form-group">
                <label class="x100">选择接口类型:</label>
                <select name="" data-toggle="selectpicker">
                    <option value="1">即时到帐交易接口</option>
                   <!--  <option value="2">担保交易接口</option> -->
                </select>
            </div>
           <!--  <div class="form-group">
                <label class="x100">是否开通网银:</label>
                <input type="radio" name="status" id="zfb_status1" data-toggle="icheck" data-label="是"  checked  />
                <input type="radio" name="status" id="zfb_status2" data-toggle="icheck" data-label="否"   />
            </div> -->
            <div class="form-group">
                <label class="x100">状态:</label>
                <input type="radio" name="status" value="0" id="zfb_status3" data-toggle="icheck" data-label="启用"  <?php if($va["status"] == '0' or $va == null): ?>checked<?php endif; ?> />
                <input type="radio" name="status" value="1" id="zfb_status4" data-toggle="icheck" data-label="禁用"  <?php if($va["status"] == '1'): ?>checked<?php endif; ?> />
            </div><?php endif; ?>
        <?php if(($_GET['type']) == "2"): ?><!--支付宝支付-->
            <div class="form-group">
                <label class="x100">支付宝帐户:</label>
                <input type="text" name="zfb_account" data-rule="required" value="<?php echo ($va["zfb_account"]); ?>"/>
            </div>
           <!--  <div class="form-group">
                <label class="x100">交易安全校验码:</label>
                <input type="text" name="zfb_key" data-rule="required" value="<?php echo ($va[""]); ?>"/>
            </div> -->
            <div class="form-group">
                <label class="x100">合作者身份ID:</label>
                <input type="text" name="zfb_partner" data-rule="required" value="<?php echo ($va["zfb_partner"]); ?>"/>
            </div>
            <div class="form-group">
                <label class="x100">秘钥:</label>
                <textarea name="zfb_key" class="w400"><?php echo ($va["zfb_key"]); ?></textarea>
            </div>
            <div class="form-group">
                <label class="x100">选择接口类型:</label>
                <select name="" data-toggle="selectpicker">
                    <option value="1">即时到帐交易接口</option>
                   <!--  <option value="2">担保交易接口</option> -->
                </select>
            </div>
           <!--  <div class="form-group">
                <label class="x100">是否开通网银:</label>
                <input type="radio" name="status" id="zfb_status1" data-toggle="icheck" data-label="是"  checked  />
                <input type="radio" name="status" id="zfb_status2" data-toggle="icheck" data-label="否"   />
            </div> -->
            <div class="form-group">
                <label class="x100">状态:</label>
                <input type="radio" name="status" value="0" id="zfb_status3" data-toggle="icheck" data-label="启用"  <?php if($va["status"] == '0' or $va == null): ?>checked<?php endif; ?>  />
                <input type="radio" name="status" value="1" id="zfb_status4" data-toggle="icheck" data-label="禁用"  <?php if($va["status"] == '1'): ?>checked<?php endif; ?> />
            </div><?php endif; ?>
        <?php if(($_GET['type']) == "3"): ?><!--微信-->
            <div class="form-group">
                <label class="x100">支付APPID:</label>
                <input type="text" name="wx_appid" data-rule="required" value="<?php echo ($va["wx_appid"]); ?>"/>
            </div>
            <div class="form-group">
                <label class="x100">商户号:</label>
                <input type="text" name="wx_mchid" data-rule="required" value="<?php echo ($va["wx_mchid"]); ?>"/>
            </div>
            <div class="form-group">
                <label class="x100">支付密钥:</label>
                <input type="text" name="wx_key" data-rule="required" value="<?php echo ($va["wx_key"]); ?>"/>
            </div>
            <div class="form-group">
                <label class="x100">公众号secert:</label>
                <input type="text" name="wx_appsecret" data-rule="required" value="<?php echo ($va["wx_appsecret"]); ?>"  />
                <span class="text-warning">JSAPI支付的时候需要配置</span>
            </div>
            <div class="form-group">
                <label class="x100">状态:</label>
                <input type="radio" name="status" value="0" id="zfb_status3" data-toggle="icheck" data-label="启用"  <?php if($va["status"] == '0' or $va == null): ?>checked<?php endif; ?>  />
                <input type="radio" name="status" value="1" id="zfb_status4" data-toggle="icheck" data-label="禁用"  <?php if($va["status"] == '1'): ?>checked<?php endif; ?> />
            </div><?php endif; ?>
        <?php if(($_GET['type']) == "4"): ?><!--银联-->
            <div class="form-group">
                <label class="x100">商户号:</label>
                <input type="text" name="yl_mchid" data-rule="required" value="<?php echo ($va["yl_mchid"]); ?>"/>
            </div>
            <div class="form-group">
                <label class="x100">私钥证书密码:</label>
                <input type="text" name="yl_key" data-rule="required" value="<?php echo ($va["yl_key"]); ?>"/>
            </div>
            <div class="form-group">
                <label class="x100">企业网银账号:</label>
                <input type="text" name="yl_account" data-rule="required" value="<?php echo ($va["yl_account"]); ?>"/>
            </div>
            <div class="form-group">
                <label class="x100">企业网银密码:</label>
                <input type="text" name="yl_password" data-rule="required" value="<?php echo ($va["yl_password"]); ?>"/>
            </div>
            <div class="form-group">
                <label class="x100">状态:</label>
                <input type="radio" name="status" value="0" id="zfb_status3" data-toggle="icheck" data-label="启用"  <?php if($va["status"] == '0' or $va == null): ?>checked<?php endif; ?> />
                <input type="radio" name="status" value="1" id="zfb_status4" data-toggle="icheck" data-label="禁用"  <?php if($va["status"] == '1'): ?>checked<?php endif; ?> />
            </div><?php endif; ?>
        <?php if(($_GET['type']) == "5"): ?><!--财付通-->
            <div class="form-group">
                <label class="x100">partner:</label>
                <input type="text" name="cft_partner" data-rule="required" value="<?php echo ($va["cft_partner"]); ?>"/>
            </div>
            <div class="form-group">
                <label class="x100">key:</label>
                <input type="text" name="cft_key" data-rule="required" value="<?php echo ($va["cft_key"]); ?>"/>
            </div>
            <div class="form-group">
                <label class="x100">状态:</label>
                <input type="radio" name="status" value="0" id="zfb_status3" data-toggle="icheck" data-label="启用"  <?php if($va["status"] == '0' or $va == null): ?>checked<?php endif; ?> />
                <input type="radio" name="status" value="1" id="zfb_status4" data-toggle="icheck" data-label="禁用"  <?php if($va["status"] == '1'): ?>checked<?php endif; ?> />
            </div><?php endif; ?>
        <?php if(($_GET['type']) == "6"): ?><!--支付宝登录-->
            <div class="form-group">
                <label class="x100">合作者身份ID:</label>
                <input type="text" name="" data-rule="required" />
            </div>
            <div class="form-group">
                <label class="x100">安全检验码:</label>
                <input type="text" name="" data-rule="required" />
            </div><?php endif; ?>
        <?php if(($_GET['type']) == "7"): ?><!--QQ登录-->
            <div class="form-group">
                <label class="x100">app_id:</label>
                <input type="text" name="" data-rule="required" />
            </div>
            <div class="form-group">
                <label class="x100">app_secret:</label>
                <input type="text" name="" data-rule="required" />
            </div><?php endif; ?>
        <?php if(($_GET['type']) == "8"): ?><!--微信登录-->
            <div class="form-group">
                <label class="x100">开放平台appid:</label>
                <input type="text" name="" data-rule="required" />
            </div>
            <div class="form-group">
                <label class="x100">开放平台secret:</label>
                <input type="text" name="" data-rule="required" />
            </div><?php endif; ?>
    </form>
</div>

<div class="bjui-pageFooter">
		
	<?php if(save == save): ?><ul>
			<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == close): ?>
	    <ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == page and $show != null): ?>
		<ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
		    <div class="pages">
		        <span>每页&nbsp;</span>
		        <div class="selectPagesize">
		            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
		                <option value="<?php echo ($show['listrow']); ?>"><?php echo ($show['listrow']); ?></option>
		                <option value="60">60</option>
		                <option value="120">120</option>
		                <option value="150">150</option>
		            </select>
		        </div>
		        <span>&nbsp;条，共 <?php echo ($show['total']); ?> 条</span>
		    </div>
		    <div class="pagination-box" data-toggle="pagination" data-total="<?php echo ($show['total']); ?>" data-page-size="<?php echo ($show['listrow']); ?>" data-page-current="1">
		    </div>
	<?php elseif(save == page and $show == null): ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul>
	<?php else: ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul><?php endif; ?>

</div>